 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from Region table
	/// </summary>
	[Table("Region")]
	[DataContract]
	public class ORegion
	{
		/// <summary>
		/// Auto generated property by ORMAC from RegionID column
		/// </summary>		
		[PrimaryKey]
		[Field("RegionID")]
		[DataMember]
		public int RegionID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from RegionDescription column
		/// </summary>		
		[Field("RegionDescription")]
		[DataMember]
		public string RegionDescription{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///RegionID as primary key and RegionID as foreign key in  Territories table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="RegionID",ChildCol="RegionID")]
		public List<OTerritories> Territoriess{
			get;
			set;
		}

	}
}
